<?php
/**
 * FileName: CategoryGroup.php
 * Author: Fei.Song
 * Date: 2021/6/3 16:17
 * Created by PhpStorm
 * Desc:
 */

namespace App\Models;

class CategoryGroup extends BaseModel {
    protected $table = "category_group";
    protected $fillable = ['name', 'code', 'depth'];
    protected $casts = [
        'created_at' => 'datetime:Y-m-d',
        'updated_at' => 'datetime:Y-m-d',
    ];

    protected $declares = [
        "id"=>["id","="],
        "code"=>["code","="],
        "name"=>["name","="],
        "depth" => ["depth", "="]
    ];

}
